package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CZDZ_DZB"
 *     
*/
public class YhdzDzb implements Serializable {

    /** identifier field */
    private String bh;

    /** persistent field */
    private String dwbh;

    /** persistent field */
    private String nd;

    /** persistent field */
    private BigDecimal yf;
    
    /** persistent field */
    private String bank_type;
    
    /** persistent field */
    private String bank_name;
    
    /** persistent field */
    private String send_state;
    
    /** persistent field */
    private String hzsj_bz;

    /** persistent field */
    private String sbztDm;

    /** persistent field */
    private String hzztDm;

    /** persistent field */
    private String hdztDm;
    
    private String lrrq;

    private String sx;
    
    private String zt1;
    
    private String zt2;

    /** full constructor */
    public YhdzDzb(String bh, String dwbh, String nd, BigDecimal yf, String sbztDm, String hzztDm, String hdztDm, String sx, String bank_type, String bank_name, String send_state, String zt1, String zt2) {
        this.bh = bh;
        this.dwbh = dwbh;
        this.nd = nd;
        this.yf = yf;
        this.bank_type = bank_type;
        this.bank_name = bank_name;
        this.send_state = send_state;
        this.sbztDm = sbztDm;
        this.hzztDm = hzztDm;
        this.hdztDm = hdztDm;
        this.sx = sx;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public YhdzDzb() {
    }

    /** minimal constructor */
    public YhdzDzb(String bh, String dwbh, String nd, BigDecimal yf, String sbztDm, String hzztDm, String hdztDm) {
        this.bh = bh;
        this.dwbh = dwbh;
        this.nd = nd;
        this.yf = yf;
        this.sbztDm = sbztDm;
        this.hzztDm = hzztDm;
        this.hdztDm = hdztDm;
    }
    
    /**
     * Getters and Setters
     * @return
     */

	public String getBh() {
		return bh;
	}

	public void setBh(String bh) {
		this.bh = bh;
	}

	public String getDwbh() {
		return dwbh;
	}

	public void setDwbh(String dwbh) {
		this.dwbh = dwbh;
	}

	public String getNd() {
		return nd;
	}

	public void setNd(String nd) {
		this.nd = nd;
	}

	public BigDecimal getYf() {
		return yf;
	}

	public void setYf(BigDecimal yf) {
		this.yf = yf;
	}

	public String getBank_type() {
		return bank_type;
	}

	public void setBank_type(String bank_type) {
		this.bank_type = bank_type;
	}

	public String getBank_name() {
		return bank_name;
	}

	public void setBank_name(String bank_name) {
		this.bank_name = bank_name;
	}

	public String getSend_state() {
		return send_state;
	}

	public void setSend_state(String send_state) {
		this.send_state = send_state;
	}

	public String getHzsj_bz() {
		return hzsj_bz;
	}

	public void setHzsj_bz(String hzsj_bz) {
		this.hzsj_bz = hzsj_bz;
	}

	public String getSbztDm() {
		return sbztDm;
	}

	public void setSbztDm(String sbztDm) {
		this.sbztDm = sbztDm;
	}

	public String getHzztDm() {
		return hzztDm;
	}

	public void setHzztDm(String hzztDm) {
		this.hzztDm = hzztDm;
	}

	public String getHdztDm() {
		return hdztDm;
	}

	public void setHdztDm(String hdztDm) {
		this.hdztDm = hdztDm;
	}

	public String getSx() {
		return sx;
	}

	public void setSx(String sx) {
		this.sx = sx;
	}

	public String getZt1() {
		return zt1;
	}

	public void setZt1(String zt1) {
		this.zt1 = zt1;
	}

	public String getZt2() {
		return zt2;
	}

	public void setZt2(String zt2) {
		this.zt2 = zt2;
	}

	public String getLrrq() {
//		StringBuffer formatDate = new StringBuffer();
//		if (lrrq != null) {
//			this.lrrq.replaceAll("//", "");
//			if ( this.lrrq.length() == 8) {
//				formatDate.append(this.lrrq.substring(0, 4)).append("/")
//						.append(this.lrrq.substring(4, 6)).append("/").append(
//								this.lrrq.substring(6, 8));
//			} else if (this.lrrq != null && this.lrrq.length() == 10) {
//				return this.lrrq;
//			}
//			return formatDate.toString();
//		}
		return this.lrrq;
	}

	public void setLrrq(String lrrq) {
		this.lrrq = lrrq;
	}

    
    
    
/**
 * 

    public String toString() {
        return new ToStringBuilder(this)
            .append("bh", getBh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof YhdzDzb) ) return false;
        YhdzDzb castOther = (YhdzDzb) other;
        return new EqualsBuilder()
            .append(this.getBh(), castOther.getBh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getBh())
            .toHashCode();
    }
 */
}
